<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>龙翔收银系统</title>

		<link href="css/jquery.bxslider.css" rel="stylesheet" type="text/css">
		<link href="css/font-awesome.css" rel="stylesheet" />
		<link href="css/index.css" rel="stylesheet" />
      
	</head>
	<body>
		<div class="mainlayout" >

				<div class="r_financial_management">
					
						<ul class="hides" style="width:50%; margin-left:auto; margin-right:auto;" >
							<li>
								<div>
									<table  cellspacing="0" cellpadding="4" class="banking_processing_con">
										<tr>
											<td colspan="3" class="table_tdheight"><span>修改资料 </span></td>
										</tr>
										<tr>
											<td width="2"></td>
											<td align="center" valign="top">
											<form name="detailForm" method="post" action="<%=path%>/admin/admin_updateTAdmin" onsubmit="return confirmation()">
												<table  border="0" class="banking_processing_con_tit" cellspacing="0" cellpadding="4">
													<tr align="center">
														<th align="center">修改个人信息</th>
															<div>
									<table class="banking_processing_tit">
									<s:iterator id="a" value="#request.admin">
										<tr>
											<td style="width:250px">用户名：</td>
											<td style="text-align:left"><input type="hidden" name="admin.id" value="<s:property value="#a.id"/>"/>
												<input id="name" style="width:208px" value=<s:property value="#a.name"/> name="admin.name" />												
											 <p id="textname"><p>
											</td>
										</tr>
                                        <tr>
											<td style="width:250px">用户名：</td>
											<td style="text-align:left">
												<input id="password" style="width:208px" value=<s:property value="#a.password"/> name="admin.password" />												
											 <p id="textname"><p>
											</td>
										</tr>
										
										<tr>
											<td colspan="6">
												<input  type="submit" class="buttonstyle" value="提交" >
											
											</td>
										</tr>
										</s:iterator>
									</table>
								</div>
													</tr>
												      <script src="js/jquery-1.10.2.js"></script>
<script type="text/javascript">
			function confirmation(){
			
					
						if($("#name").val() == null  || $("#name").val() == ""){
							$("#textname").html("不能为空！1-20个字符");
							
							return false;
						}
						 if($("#password").val() == null || $("#password").val() == ""){
							$("#password").html("不能为空！1-10个字符或数字");
							
							return false;
						}
						
						return true;
							
					}
				
				
			</script>   	
												</table>
												</form>
											</td>
											
										</tr>
										
									</table>
                                   
								</div>
							</li>
						</ul>
                       </div>
                  </div>
                      
</body>
</html>

